/**
 * 文件路径映射表
 * @type {Array}
 */
var CommonFileList = [];
CommonFileList['Jquery']                = 'Common/vorder/jquery/jquery-3.3.1.min.js';  //jquery
CommonFileList['Layer']                 = 'Common/vorder/layer-v3.1.1/layer.js';       //layer
CommonFileList['Config']                = 'Common/Config.js';                          //公共配置文件
CommonFileList['ProtocolApi']           = 'Common/ProtocolApi.js';                     //协议定义文件
CommonFileList['Status']                = 'Common/Status.js';                          //状态码定义
CommonFileList['Socket']                = 'Common/Socket.js';                          //Socket连接
CommonFileList['FunctionCommon']        = 'Common/FunctionCommon.js';                  //公共函数
CommonFileList['LoadCheck']             = 'Common/LoadCheck.js';                       //登录检测
CommonFileList['ServerCommonMessage']   = 'Common/ServerCommonMessage.js';             //公共服务器消息管理器
CommonFileList['Login']                 = 'DDZ/Script/Login.js';                       //登陆注册管理器类
CommonFileList['RoomDetail']            = 'DDZ/Script/RoomDetail.js';                  //房间管理器
CommonFileList['RoomList']              = 'DDZ/Script/RoomList.js';                    //房间列表管理器



/**
 * 文件自动引入
 * @param file 插件名称
 */
function CommonFileListRequertFile(file){
    if(typeof CommonFileList[file]=="undefined"){
        console.log(file);
        alert('缺少类文件'+file);
    }else{
        document.write("<script  language=javascript src='"+CommonFileList[file]+"'></script>"); //自动加载文件
    }
}

